<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>回调地狱</title>
</head>
<body>
    <script>
        function ajax(url,sucesscb,errorcb){
            setTimeout(()=>{
                sucesscb('111')
            },1000)
        }

        ajax('/aaa',(data)=>{
            console.log(data);
            ajax('/bbb',(data)=>{
                ajax('/ccc',(data)=>{

                },()=>{

                })
           
        },()=>{

        })
    },()=>{

    })

    </script>
    
</body>
</html>